.text-editor-box {
  background-repeat: no-repeat;
  width: 100%;
  margin: 0 auto;
  overflow-y: auto;

  // 富文本相关样式
  em {
    font-style: italic;
  }

  strong {
    font-weight: bolder;
  }

  // 保证空行不会被隐藏
  p {
    min-height: 16px;
  }

  hr {
    border-top: solid 1px rgba(0, 0, 0, 0.1);
  }

  ul,
  ol {
    margin: 8px 0 16px 0;
    padding: 0;
    list-style-type: disc;
    list-style-position: inside;
    margin-block-start: 1.5em;
    margin-block-end: 1.5em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    // padding-inline-start: 40px;

    li {
      display: list-item;
    }
  }

  ol {
    list-style-type: decimal;

    li {
      counter-reset: a;
      display: list-item;
    }
  }

  ul li {
    list-style-type: disc;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
    padding: 0;
    color: inherit;
    font-weight: 500;
  }
  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 20px;
  }
  h4 {
    font-size: 16px;
  }
  h5 {
    font-size: 14px;
  }
  h6 {
    font-size: 12px;
  }

  // 引用块样式
  blockquote {
    margin: 0 0 10px 0;
    padding: 15px 20px;
    background-color: #f1f2f3;
    border-left: solid 5px #ccc;
    color: #666;
    font-style: italic;
  }

  // 代码块样式
  pre {
    max-width: 100%;
    max-height: 100%;
    margin: 10px 0;
    padding: 15px;
    overflow: auto;
    background-color: #f1f2f3;
    border-radius: 3px;
    color: #666;
    font-family: monospace;
    font-size: 14px;
    font-weight: normal;
    line-height: 16px;
    word-wrap: break-word;
    white-space: pre-wrap;

    pre {
      margin: 0;
      padding: 0;
    }
  }

  // 给富文本中的表格设置默认样式
  table {
    border-top: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;

    td {
      padding: 5px 8px;
      border-right: 1px solid #f0f0f0;
      border-bottom: 1px solid #f0f0f0;
      transition: background 0.3s;
    }
  }
}
